import request from '@/utils/request'

// 创建库存明细
export function createItemWarehouseInfo(data) {
  return request({
    url: '/wms/item-warehouse-info/create',
    method: 'post',
    data: data
  })
}

// 更新库存明细
export function updateItemWarehouseInfo(data) {
  return request({
    url: '/wms/item-warehouse-info/update',
    method: 'put',
    data: data
  })
}

// 删除库存明细
export function deleteItemWarehouseInfo(id) {
  return request({
    url: '/wms/item-warehouse-info/delete?id=' + id,
    method: 'delete'
  })
}

// 获得库存明细
export function getItemWarehouseInfo(id) {
  return request({
    url: '/wms/item-warehouse-info/get?id=' + id,
    method: 'get'
  })
}

// 获得库存明细分页
export function getItemWarehouseInfoPage(query) {
  return request({
    url: '/wms/item-warehouse-info/page',
    method: 'get',
    params: query
  })
}

// 导出库存明细 Excel
export function exportItemWarehouseInfoExcel(query) {
  return request({
    url: '/wms/item-warehouse-info/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
